package com.aiwei.tdjk.utils;

import java.util.List;

/**
 * Created by yangyanjun on 2017/8/17.
 */
public class ListUtil {
    public static Boolean isEmpty(List list) {
        if (list != null && !list.isEmpty()) {// list不为null，且list不是empty
            for (int i = 0; i < list.size(); i++) {
                if (null != list.get(i) && !"".equals(list.get(i))) {// 元素不为null或""
                    return false;
                } else {
                    return true;
                }
            }
        } else {
            return true;
        }
        return true;
    }
}
